package com.gagakuai.bpm.domian.events;


import com.gagakuai.bpm.domian.entity.camuda.ActRuTask;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/*
 * @program: bpm_server
 * @description: 加签事件
 * @author: houhong
 * @create: 2022-05-07 15:59
 */
@Getter
@Setter
@Slf4j
public class AddInstanceEvent extends BaseEvent {

    private AddInstanceEventData addInstanceEventData = null;


    public AddInstanceEvent(Object source) {

        super(source);
        log.info("#创建 【加签事件】#");
        addInstanceEventData = (AddInstanceEventData) source;
    }

    public static class AddInstanceEventData {

        /*
         *
         * 办理人
         */
        private List<String> assigneeList;


        /*
         *  流程实列id
         *
         */
        private String processId;


        /*
         * 新加签的工作任务id
         */
        private List<ActRuTask> actRuTask;

        //未加签之前的任务拥有人
        private String taskOwner;

        /*
        *
        *  任务原来的人str
        *
        */
        private String  originTaskOwnersStr;

        //由该任务加签的出去的拥有人
        private String curAddTaskOwner;


        public String getCurAddTaskOwner() {
            return curAddTaskOwner;
        }

        public void setCurAddTaskOwner(String curAddTaskOwner) {
            this.curAddTaskOwner = curAddTaskOwner;
        }

        public List<String> getAssigneeList() {
            return assigneeList;
        }

        public void setAssigneeList(List<String> assigneeList) {
            this.assigneeList = assigneeList;
        }

        public String getProcessId() {
            return processId;
        }

        public void setProcessId(String processId) {
            this.processId = processId;
        }

        public List<ActRuTask> getActRuTask() {
            return actRuTask;
        }

        public void setActRuTask(List<ActRuTask> actRuTask) {
            this.actRuTask = actRuTask;
        }

        public String getTaskOwner() {
            return taskOwner;
        }

        public void setTaskOwner(String taskOwner) {
            this.taskOwner = taskOwner;
        }

        public String getOriginTaskOwnersStr() {
            return originTaskOwnersStr;
        }

        public void setOriginTaskOwnersStr(String originTaskOwnersStr) {
            this.originTaskOwnersStr = originTaskOwnersStr;
        }
    }


}